/**
 * 产品定义
 */
define(function (require, exports, module) {
    //引入视图基类
    var ELView = require("elview");
    //assets
    var template = require("./assets/tpl/product_main.tpl");
    require("./assets/css/product_main.css");

    //business

    //component
    var productSubnavComp = require("./component/productSubnavComp");
    var productGridComp = require("./component/productGridComp");
    var productFormComp = require("./component/productFormComp");
    var productButtonComp = require("./component/productButtonComp");
    var productEditGridComp = require("./component/productEditGridComp");
    var productEditFormComp = require("./component/productEditFormComp");
    
    //constant

    //handler

    //store

    var product_main = ELView.extend({
        attrs: {
            template: template
        },
        events:{
        },
        initComponent: function (params, widget) {
        	productSubnavComp.initComponent(params, widget);
        	productGridComp.initComponent(params, widget);
        	productFormComp.initComponent(params, widget);
        	productButtonComp.initComponent(params, widget);
        	productEditGridComp.initComponent(params, widget);
        	productEditFormComp.initComponent(params, widget);
        },
        afterInitComponent: function (params, widget) {
        }
    });

    module.exports = product_main;
});
